package com.sxbbc.common.core.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.sxbbc.common.core.entity.jz.CConfiguration;
import com.sxbbc.common.core.mapper.jz.CConfigurationMapper;
import com.sxbbc.common.core.service.ICConfigurationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户配置表 服务实现类
 * </p>
 *
 * @author leehao
 * @since 2019-07-09
 */
@Service
public class CConfigurationServiceImpl extends ServiceImpl<CConfigurationMapper, CConfiguration> implements ICConfigurationService {

    @Override
    public CConfiguration getOneByCid(Integer cid) {
        QueryWrapper<CConfiguration> wrapper = new QueryWrapper<>();
        wrapper.eq("cid",cid);
        return super.getOne(wrapper);
    }
}
